//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "bus.h"
#include "datamodule.h"
#include "in_garage.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "FIBDataSet"
#pragma link "pFIBDataSet"
#pragma resource "*.dfm"
TFormBus *FormBus;
//---------------------------------------------------------------------------
__fastcall TFormBus::TFormBus(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------


void __fastcall TFormBus::FormActivate(TObject *Sender)
{
 pFIBDataSetBus->Active =true;
 pFIBDataSetModels->Active=false;
 pFIBDataSetModels->Active=true;

}
//---------------------------------------------------------------------------



void __fastcall TFormBus::N1Click(TObject *Sender)
{
 id_bus = pFIBDataSetBusID->Value;
 FormInGarage->Show();        
}
//---------------------------------------------------------------------------

